// 用户信息类型
export interface User {
  id: string
  username: string
  email: string
  avatar?: string
  role: 'admin' | 'user' | 'guest'
  createdAt: string
  lastLoginAt?: string
}

// 登录表单类型
export interface LoginForm {
  username: string
  password: string
  remember?: boolean
}

// 注册表单类型
export interface RegisterForm {
  username: string
  email: string
  password: string
  confirmPassword: string
}

// 登录响应类型
export interface LoginResponse {
  token: string
  user: User
  expiresIn: number
}

// 注册响应类型
export interface RegisterResponse {
  message: string
  user: Omit<User, 'id' | 'createdAt'>
} 